{include file="header.tpl" title="Tranlimit"}
<table border="0">
<tr>
<td nowrap="nowrap">
{$away}
</td>
</tr>
</table>
<form action="" method="post" target="_self" name="position">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
  	<td nowrap="nowrap">{$lbl_maposition}</td>
    <td colspan="3" align="left" style="color:#FF0000;">  <input name="LEVELID" id="LEVELID" type="text" value="{$LEVELID}" maxlength="10"  style="width:100px;"  {if $readonly eq 'readonly'} readonly="readonly" {/if}/> 
    *<input type="button" onClick="mywindow = window.open('position_id.php', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findmicro" id="replacement_binoculars" value="     " {if $readonly eq 'readonly'} style="visibility:hidden;" {/if}/> <input id="replacement_find" type="submit" name="find" value="    " {if $readonly eq 'readonly'} style="visibility:hidden;" {/if} height="15"/> </td>
  </tr>
  <tr>
  	<td nowrap="nowrap">{$lbl_matxnlevel}</td>
    <td colspan="3" align="left">
	<!--<select name="Txnlevel" id="Txnlevel" size="1" {if $doaction eq 'maintain'}disabled="disabled"{/if} >
	-->
	<select name="Txnlevel" id="Txnlevel" size="1" style="width:200px;" {if $readonly eq 'readonly'} disabled="disabled" {/if}>
      {foreach from=$Txnlevel key=k item=v}
	  	<option value="{$k}" {if $k eq $activeTxnlevel} selected="selected" {/if} >{$k}- {$v}</option>
	  {/foreach}
    </select><input type="hidden" value="{$activeTxnlevel}" name="activeTxnlevel" id="activeTxnlevel"/></td>
  </tr>
	<tr>
	<td nowrap="nowrap">{$lbl_macurrcode}</td>
    <td colspan="3" align="left">
	<!--<select name="Curcode" id="Curcode" size="1" {if $doaction eq 'maintain'}disabled="disabled"{/if}>
	-->
	<select name="Curcode" id="Curcode" size="1" style="width:200px;" {if $readonly eq 'readonly'} disabled="disabled" {/if}>
		{foreach from=$CURCODE item=curr}
			<option value="{$curr}" {if $curr eq $activeCURCODE} selected="selected" {/if} >{$curr}</option>					
		{/foreach}
	</select><input name="activeCURCODE" type="hidden" id="activeCURCODE" value="{$activeCURCODE}"/></td>
	</tr>
	<tr>
	<td nowrap="nowrap">{$lbl_AmtOnline}</td>
    <td align="left" colspan="3"><input name="AmtOnline" id="AmtOnline" type="text" value="{$AmtOnline}" size="20" maxlength="30"   class="textright" style="width:200px;" readonly="readonly"/></td>	
	</tr>	
	<tr>
	<td align="left">{$lbl_AmtOffline}</td>
	<td align="left" colspan="3"><input name="AmtOffline" id="AmtOffline" type="text" value="{$AmtOffline}" size="20" maxlength="30"  class="textright" style="width:200px;" readonly="readonly"/></td>
	</tr>
<tr>
<td colspan="4">
<p></p>
<p></p></td>
</tr>
<tr>
<td colspan="4" align="right">  
  <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="document.getElementById('tuchoi').disabled='disabled'; document.getElementById('duyet').disabled='disabled';
document.getElementById('LEVELID').readOnly=false; document.getElementById('Txnlevel').disabled=false; document.getElementById('Curcode').disabled=false; document.getElementById('replacement_find').style.visibility='visible'; document.getElementById('replacement_binoculars').style.visibility='visible';
  
  " onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" {if $readonly neq 'readonly'} disabled="disabled"{/if}/>
<input value="{$lbl_tuchoi}" id="tuchoi" name="tuchoi" type="submit" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" {if $readonly neq 'readonly'} disabled="disabled"{/if}/>
 <input value="{$lbl_duyet}" id="duyet" name="duyet" type="submit" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" {if $readonly neq 'readonly'} disabled="disabled"{/if}/></td>
</tr>
<tr>
  <td colspan="4"><input value="{$lbl_lichsuthaydoi}" name="lichsuthaydoi" type="button" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onclick="mywindow = window.open('lich_su_tranlimit1.php?posid={$LEVELID}&txnid={$activeTxnlevel}&curcode={$activeCURCODE}', 'mywindow','menubar=0,scrollbars=1,resizable=0,width=700,height=300');mywindow.moveTo((screen.width-700)/2,(screen.height-300)/2);" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onChange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
